package com.lemo.autowired;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class Tiger {

    private String name = "老虎";

    @Override
    public String toString() {
        return "Tiger{" +
                "name='" + name + '\'' +
                '}';
    }

    @PostConstruct
    public void construct() {
        System.out.println("Tiger construct");
    }

    @PreDestroy
    public void destroy() {
        System.out.println("Tiger destroy");
    }
}
